Concentre.Factory.Xslt = {
		_cache : {},
		
		getStylesheet : function (surl) {
			var surlpos = surl.indexOf('?');

			if (surlpos==-1) surlpos = surl.length;
			surl = surl.substring(0,surlpos);
		
			if (!this._cache[surl]) {
				var xslDoc = Concentre.Factory.Xml.loadURL(surl);
     			var xslt = new XSLTProcessor();
      			xslt.importStylesheet(xslDoc);
      			this._cache[surl] = xslt;
    		}		
    
    		return this._cache[surl];
		},
		
	
		toString: function () {
			return '[ Object Concentré Factory Xslt ]';
		}
};
